
//
//  GameCountSearchResponse.m
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import "GameCountSearchResponse.h"
#import "GameInfo.h"

@implementation GameCountSearchResponse

- (void)parse
{
    [super parse];
    
    if (self.bodyDict)
    {
        self.gameInfoArray = [[NSMutableArray alloc] init];
        
        NSArray *gameJsonArray = GetDictionaryArrayDefaultNil(self.bodyDict, @"game");
        NSLog(@"lanzhiyuan===========gameInfoArray:%@\n", gameJsonArray);
        for (int i = 0; i < [gameJsonArray count]; i++)
        {
            NSDictionary *gameInfoJson = [gameJsonArray objectAtIndex:i];
            GameInfo *gameInfo = [[GameInfo alloc] initWithDictionary:gameInfoJson];
            
            [self.gameInfoArray addObject:gameInfo];
            
            //[gameInfo release];
        }
        NSLog(@"lanzhiyuan2===========gameInfoArray:%@\n", self.gameInfoArray);

    }
}


@end
